package cn.itsource.exam.query;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * Created by su on 2020/7/8.
 */
public class UserInfoQuery {

    private Long currentPage = 1L;
    private Long pageSize = 10L;
    private String name;
    private String classname;
    private String phone;
    private Integer u_type;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long classid;

    public Long getClassid() {
        return classid;
    }

    public void setClassid(Long classid) {
        this.classid = classid;
    }

    public Long getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Long currentPage) {
        this.currentPage = currentPage;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public Long getStart(){
        return (currentPage-1)*pageSize;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getU_type() {
        return u_type;
    }

    public void setU_type(Integer u_type) {
        this.u_type = u_type;
    }
}
